.left-tree {
  &::-webkit-scrollbar {
    width: 0px;
    height: 0px;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #c7ced8;
  }
}

.tree-content {
  flex: 1;
  // overflow-y: auto;

  &::-webkit-scrollbar {
    width: 0px;
  }

  :global {
    .ant-tree {
      background: none;
    }

    .ant-tree .ant-tree-node-content-wrapper:hover {
      background-color: #eff1f8;
    }

    .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
      color: #0084ff;
      background: linear-gradient(90deg, #d6e7fa 20%, rgba(193, 214, 236, 0) 100%);
    }

    .ant-input {
      background-color: transparent;
    }

    .ant-tree .ant-tree-node-content-wrapper {
      overflow: hidden;
    }
  }
}

.tree-line {
  display: flex;
  align-items: center;
  justify-content: space-between;

  .title {
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    overflow: hidden;
    display: flex;
    align-items: center;
  }

  img {
    width: 12px;
    margin-right: 4px;
    // margin-bottom: 4px;
  }

  .operate {
    flex: 0 0 70px;
    display: none;

    > span {
      margin: 0 4px;
    }

    :global {
      .iconfont {
        font-size: 12px;
      }
    }
  }

  &:hover {
    .operate {
      display: block;
    }
  }
}

.form-item {
  border: 1px solid #eaeaef;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 4px 8px;

  :global {
    .ant-form-item {
      flex: 1;
      margin-bottom: 0;
    }
  }
}

.add-btn {
  background: linear-gradient(103deg, #1b82ff 7%, #99e0ff 100%) !important;
  color: #fff !important;
}

.list-footer {
  height: 32px;
  text-align: right;
  padding-right: 30px;
}

.list-content {
  overflow-x: auto;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow-y: auto;
  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #c7ced8;
  }
}

.list-item {
  position: relative;
  // flex: 0 0 23%;
  width: 23%;
  height: fit-content;
  margin: 8px;
  border-radius: 18px;
  background: linear-gradient(317deg, #f3f9fb -2%, #e0eefe 89%);
  box-shadow: 2px 1px 3px 0px rgba(170, 187, 238, 0.9), inset -4px -3px 4px 0px rgba(255, 255, 255, 0.6);

  .card-img-1 {
    position: absolute;
    top: -4px;
    left: 10px;
  }

  .card-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
  }

  .version-select {
    width: 100px;
    :global {
      .ant-select-selector {
        background-color: #f1f8ff;
      }
    }
  }

  .item-more {
    height: 32px;
    margin: 0 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #829bad;
  }

  .item-title {
    padding-left: 20px;
    padding-right: 36px;
    display: flex;
    flex-direction: column;

    > div {
      &:first-child {
        display: flex;
        font-size: 18px;
        font-weight: 700;
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      &:last-child {
        color: #707c78;
        font-size: 14px;
      }
    }
  }

  .item-type-box {
    // display: flex;
    // flex-direction: column;
    padding: 0 36px;
    margin-top: 8px;
    height: 125px;

    .item-type {
      margin: 2px 0;
      display: flex;
      position: relative;

      &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -14px;
        transform: translateY(-50%);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: #0084ff;
      }

      > div {
        &:first-child {
          color: #7f818d;
          display: inline;
          white-space: nowrap;
        }

        &:last-child {
          flex: 1;
          display: inline;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          word-wrap: normal;
          width: 210px;
        }
      }
    }
  }

  .item-tag {
    min-height: 50px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 6px 36px 18px 20px;

    > div {
      padding: 2px 10px;
      border-radius: 4px;
      background-color: #dae5f1;
      color: #7f8187;
      margin: 2px 4px;
    }
  }
}

.upload-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f2f3f5;
  padding: 8px 12px;
  margin-top: 12px;

  .close {
    color: red;
    cursor: pointer;
  }
}

.explain-text-1 {
  margin-top: 12px;
  margin-bottom: 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 220px;
  border-radius: 4px;
  background: #edf7fe;
  justify-content: center;
  align-items: center;

  > div {
    font-size: 16px;
    color: #4c83ab;
    margin: 12px 0;
  }
}

.explain-text-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;

  > div {
    font-size: 16px;
    margin: 12px 0;
  }
}

.download-modal {
  .upload-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f2f3f5;
    padding: 8px 12px;
    margin-top: 12px;
  }

  .close {
    color: red;
    cursor: pointer;
  }

  .detail-box {
    padding: 10px 0 60px 0;

    .detail-line {
      width: 100%;
      display: flex;
      margin-bottom: 12px;
    }

    .detail-line-title {
      text-align: right;
      flex: 0 0 100px;
      margin-right: 16px;
    }

    .detail-line-value {
      flex: 1;
      overflow: hidden;
      color: #000;
    }

    .detail-line-link {
      flex: 1;
      color: #0084ff;
      overflow: hidden;
      cursor: pointer;
    }
  }

  .select-box {
    display: flex;
    justify-content: space-around;
    padding: 10px 0 60px 0;

    .select-item {
      width: 160px;
      height: 80px;
      border-radius: 6px;
      font-size: 18px;
      font-weight: bold;
      text-align: center;
      line-height: 80px;
      cursor: pointer;

      &:hover {
        color: #0084ff;
      }
    }
  }

  :global {
    .ant-upload.ant-upload-drag {
      background-color: #f2f3f5;
      border-radius: 4px;
      border: none;
    }
  }
}
.download-modal :global {
  .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
    color: black;
  }
}

.img-preview-modal {
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;

  &::-webkit-scrollbar {
    width: 0;
  }

  :global {
    .ant-image {
      width: 31.333%;
      height: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 1%;

      img {
        max-width: 100%;
        max-height: 100%;
        width: unset;
        height: unset;
      }
    }
  }
}

.text-preview-modal {
  > div {
    font-size: 14px;
    height: 20px;
    line-height: 20px;
  }
}

.taskBtn {
  font-size: 18px;
  color: rgba(107, 114, 128);
  position: relative;
  margin-right: 12px;
  padding: 7px 12px;

  .taskList {
    position: absolute;
    top: 50px;
    left: 0;
    width: 160px;
    height: fit-content;
    background-color: #fff;
    z-index: 12;
    border-radius: 5px;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);
  }

  .taskBtn-act {
    width: 8px;
    height: 8px;
    position: absolute;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    background-color: #1fdf9e;
  }

  .taskNameBox {
    max-width: 100px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.search-btn {
  color: #0084ff !important;
  border: 1px solid #0084ff !important;
  background-color: #f6f8fb !important;
}

.drawer-box {
  :global {
    .ant-drawer-header {
      background-color: #ecf3ff;
    }
  }
}

.form-box {
  :global {
    .ant-form-item {
      .ant-form-item-control-input {
        .ant-input-affix-wrapper {
          background-color: #f2f4f5;
        }

        .ant-form-item-control-input-content {
          background-color: #f2f4f5;
        }

        .ant-select-selector {
          background-color: #f2f4f5;
        }
      }
    }
  }
}
